package com.cc.moxingvoice.ui.main;

import android.databinding.DataBindingUtil;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.cc.moxingvoice.R;
import com.cc.moxingvoice.base.BaseFragment;
import com.cc.moxingvoice.databinding.FragmentForumBinding;
import com.cc.moxingvoice.lock.ForumLock;

/**
 * 创建日期：2018/3/25 on 15:26
 * 描述：
 * 作者：郭士超
 * QQ：1169380200
 */

public class ForumFragment extends BaseFragment {

    private FragmentForumBinding mBinding;
    private ForumLock mLock;

    @Override
    protected View initBinding(LayoutInflater inflater, ViewGroup container) {
        mBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_forum, container, false);
        mLock = new ForumLock(getContext(), mBinding, mBundle);
        mBinding.setLock(mLock);
        return mBinding.getRoot();
    }

    @Override
    protected void init() {

    }

    public boolean httpBack() {
        if (mBinding.webView.canGoBack()) {
            mBinding.webView.goBack();//返回上一页面
            return true;
        }
        return false;
    }

}
